<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <style>
    .box {
      width: 700px;
      height: 600px;
      margin: 0 auto;
    }
  </style>
  <script src="./js/echarts.min.js"></script>
</head>

<body>
  <div class="box"></div>
  <script>
    const chartDom = document.querySelector('.box')
    let myChart = echarts.init(chartDom)
    const option = {
      title: {
        text: '特色文化服务次数榜'
      },
      tooltip: {
        trigger: 'axis'
        // trigger: 'none'
      },
      legend: {
        data: ['刘文军', '谢志欢', '陈翰林', '刘治廷']
      },
      grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
        // containLabel: false
      },
      toolbox: {
        feature: {
          saveAsImage: {}
        }
      },
      xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
      },
      yAxis: {
        type: 'value'
      },
      series: [
        {
          name: '刘文军',
          type: 'line',
          stack: 'Total1',
          data: [120, 132, 101, 134, 90, 230, 210]
        },
        {
          name: '谢志欢',
          type: 'line',
          stack: 'Tota2l',
          data: [200, 182, 191, 2554, 290, 8830, 9999]
        },
        {
          name: '陈翰林',
          type: 'line',
          stack: 'To2tal',
          data: [150, 232, 201, 154, 190, 330, 10]
        },
        {
          name: '刘治廷',
          type: 'line',
          stack: 'To2tal',
          data: [320, 332, 301, 334, 390, 330, 20]
        },

      ]
    }
    myChart.setOption(option)
  </script>
</body>

</html>